import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path:'/',
    name:'home',
    component:()=>import('../views/home'),
    meta:{
      showTab: true,
    }
  },
  {
    path:'/classification',
    name:'classification',
    component:()=>import('../views/classification'),
    meta:{
      showTab: true,
    }
  },
  {
    path:'/cart',
    name:'cart',
    component:()=>import('../views/cart'),
    meta:{
      showTab: true,
    }
  },
  {
    path:'/user',
    name:'user',
    component:()=>import('../views/user'),
    meta:{
      showTab: true,
    }
  },
  {
    path:'/serch',
    name:'serch',
    component:()=>import('../views/serch'),
    meta:{
      showTab:false,
    }
  },
  {
    path:'/list',
    name:'list',
    component:()=>import('../views/list'),
    meta:{
      showTab:false,
    }
  },
  {
    path:'/details',
    name:'details',
    component:()=>import('../views/details'),
    meta:{
      showTab:false,
    }
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
